﻿using Prism.Ioc;
using Prism.Modularity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using Company.Core.Extensions;
using Company.Application.Share.Prism;
using Company.Application.Image.Views;
using Company.Core.IOC;

namespace Company.Application.Image
{
    [Module(OnDemand = true)]
    public class ImageModule : IModule
    {
        public void OnInitialized(IContainerProvider containerProvider)
        {
            containerProvider.InitializeAssembly(Assembly.GetExecutingAssembly());
            PrismProvider.RegionManager.RegisterViewWithRegion(RegionNames.ImageRegion, ViewNames.ImageView);
        }

        public void RegisterTypes(IContainerRegistry containerRegistry)
        {
            containerRegistry.RegisterAssembly(Assembly.GetExecutingAssembly());
            containerRegistry.RegisterForNavigation<ImageView>();
        }
    }
}
